package com.gzsxy.factory;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 咖啡店(只提供卖咖啡的业务，咖啡应该由一个专门的工厂制作和提供)
 * @date 2022/4/10 19:10
 */
public class CoffeeStore {
    public Coffee orderCoffee(String type){
        Coffee coffee = SimpleCoffeeFactory.createCoffee(type);
        coffee.addMilk();
        coffee.addSugar();
        return coffee;
    }
}
